﻿using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JhEngine.RequestHelper
{
    public static class RestRequestManager
    {
        public static RestRequest CreateRestRequest(string resource, Method method) 
        {

            //var request = new RestRequest("api/InterfaceTool/GetInterfaceToolByCode", Method.GET);
            var request = new RestRequest(resource, method);
            request.AddHeader("Auth","jhecis");
            return request;
        }
       
    }
}
